<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>宿舍评分管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
	
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsScoreForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsScoreForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>

	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/score/dmsScore/">宿舍评分列表</a></li>
		<%-- <shiro:hasPermission name="score:dmsScore:edit"><li><a href="${ctx}/score/dmsScore/form">宿舍评分添加</a></li></shiro:hasPermission> --%>
	</ul> 
	<form:form id="searchForm" modelAttribute="dmsScore" action="${ctx}/score/dmsScore/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>宿舍号：</label>
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="64" class="input-medium w"/>
			</li>
<%-- 			<li><label>班级：</label>
				<form:select path="classes" class="input-medium w">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					<form:option value="1班" label="1班"/>
					<form:option value="2班" label="2班"/>
				</form:select>
			</li> --%>
			<li><label>评分日期：</label>
				<input name="markDate" type="text" readonly="readonly" maxlength="20" class="input-medium m Wdate"
					value="<fmt:formatDate value="${dmsScore.markDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<%-- <li class="btns"><a href="${ctx}/score/dmsScore/form"><input id="btnSubmit" class="btn btn-primary" type="button" value="宿舍评分添加"/></a></li> --%>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>宿舍号</th>
				<!-- <th>班级</th>
				<th>卫生</th>
				<th>报修</th>
				<th>违规</th>
				<th>其他</th>
				<th>总评分</th> -->
				<th>宿舍评级</th>
				<th>评分日期</th>
			 	<%-- <shiro:hasPermission name="score:dmsScore:edit"><th>操作</th></shiro:hasPermission>  --%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="dmsScore">
			<tr>
				<td><%-- <a href="${ctx}/score/dmsScore/form?id=${dmsScore.id}"> --%>
					${dmsScore.dormitoryNumber}
				<!-- </a> --></td>
				<%-- <td>
					${fns:getDictLabel(dmsScore.classes, '', '')}
					${dmsScore.classes}
				</td>
				<td>
					${dmsScore.health}
				</td>
				<td>
					${dmsScore.repair}
				</td>
				<td>
					${dmsScore.illegal}
				</td>
				<td>
					${dmsScore.others}
				</td> --%>
				<td>
					${dmsScore.allMarks}
				</td>
				<td>
					${dmsScore.others}
				</td>
				<td>
					<fmt:formatDate value="${dmsScore.markDate}" pattern="yyyy-MM-dd"/>
				</td>
				<%--  <shiro:hasPermission name="score:dmsScore:edit"><td>
    				<a href="${ctx}/score/dmsScore/form?id=${dmsScore.id}">修改</a>
					<a href="${ctx}/score/dmsScore/delete?id=${dmsScore.id}" onclick="return confirmx('确认要删除该宿舍评分吗？', this.href)">删除</a>
				</td></shiro:hasPermission>  --%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>